package com.lyz.dz.des.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author <a href="https://fengwenyi.com">Erwin Feng</a>
 * @since 2021-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work")
public class WorkEntity extends Model<WorkEntity> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    /**
     * 职兼类别,促销、传单派发、设计、家教、会计、计算机、服务员、其他
     */
    @TableField("work_category")
    private String workCategory;

    /**
     * 话电
     */
    @TableField("phone")
    private String phone;

    /**
     * 容内
     */
    @TableField("content")
    private String content;

    /**
     * 片图
     */
    @TableField("image")
    private String image;

    /**
     * 题标
     */
    @TableField("title")
    private String title;

    /**
     * 否是审核0否1是
     */
    @TableField("is_auditing")
    private Integer isAuditing;

    /**
     * 否是有效，1有效，0无效
     */
    @TableField("is_effect")
    private Integer isEffect;

    /**
     * 立建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
